package net.codesree.utils;

import javax.sql.DataSource;

public class Configuration {

 private static Configuration instanceObj=null;
 private String urlEnding=null;
 private DataSource dSource=null;
 
 private Configuration(String _urlEnding,DataSource _dSource) {
  this.urlEnding=_urlEnding;
  this.dSource=_dSource;
 }

 public static Configuration getConfiguration(String _urlEnding,DataSource _dSource) {
  if(instanceObj==null)
   instanceObj=new Configuration(_urlEnding,_dSource);
  return instanceObj;
 }
 
 public String getUrlEnding() { return this.urlEnding; }
 public DataSource getDataSource() { return this.dSource; }
}